package cn.edu.cug.cs.gtl.oi.ui.menu;

import javax.swing.*;
import java.awt.event.KeyEvent;

public class JMenuModeling extends JMenu {
    public JMenuModeling() {
        this.setText("建模(M)");
        this.setMnemonic(KeyEvent.VK_M);
        init();
    }

    void init() {
        JMenuItem ItemDrillGeologicalSection = new JMenuItem("按钻孔竖地质剖面");
        ItemDrillGeologicalSection.setEnabled(false);
        this.add(ItemDrillGeologicalSection);

        JMenuItem ItemControlPointGeologicalSection = new JMenuItem("按控制点竖地质剖面");
        ItemControlPointGeologicalSection.setEnabled(false);
        this.add(ItemControlPointGeologicalSection);

        JMenuItem ItemTopBottomAdjust = new JMenuItem("从上到下层面校正");
        this.add(ItemTopBottomAdjust);

        JMenuItem ItemBottomTopAdjust = new JMenuItem("从下到上层面校正");
        this.add(ItemBottomTopAdjust);

        JMenuItem ItemLineProjectionSurface = new JMenuItem("线投影到面");
        ItemLineProjectionSurface.setEnabled(false);
        this.add(ItemLineProjectionSurface);

        JMenuItem ItemCloseCoilExpand = new JMenuItem("封闭线圈扩大");
        this.add(ItemCloseCoilExpand);

        JMenuItem ItemCloseCoilBottomCurve = new JMenuItem("封闭线圈向下成曲面");
        this.add(ItemCloseCoilBottomCurve);

        JMenuItem ItemCreateDigCurve = new JMenuItem("创建开挖曲面");
        this.add(ItemCreateDigCurve);

        JMenuItem ItemFloorThicknessModeling = new JMenuItem("底板厚度建模");
        this.add(ItemFloorThicknessModeling);

        JMenuItem ItemFloorThicknessDispersePointModeling = new JMenuItem("底板厚度离散点建模");
        this.add(ItemFloorThicknessDispersePointModeling);

        JMenuItem ItemTopFloorDispersePointModeling = new JMenuItem("顶底板离散点建模");
        this.add(ItemTopFloorDispersePointModeling);

        JMenuItem ItemTunnelModeling = new JMenuItem("隧道建模");
        this.add(ItemTunnelModeling);

        JMenuItem ItemKarstcaveModeling = new JMenuItem("溶洞建模");
        this.add(ItemKarstcaveModeling);

        JMenu ItemLaneModeling = new JMenu("巷道建模");

        JMenuItem ItemGenerateBaselineContour = new JMenuItem("生成基线轮廓");
        ItemLaneModeling.add(ItemGenerateBaselineContour);

        JMenuItem ItemLaneContourModeling = new JMenuItem("巷道轮廓建模");
        ItemLaneModeling.add(ItemLaneContourModeling);

        this.add(ItemLaneModeling);
        this.addSeparator();

        JMenu ItemDrillAutoModeling = new JMenu("钻孔自动建模");

        JMenuItem ItemLayerSequenceDefine = new JMenuItem("地层序列定义");
        ItemDrillAutoModeling.add(ItemLayerSequenceDefine);
        ItemDrillAutoModeling.addSeparator();

        JMenuItem ItemReadExcelImportDrillPoint = new JMenuItem("读EXCEL导入钻孔点");
        ItemDrillAutoModeling.add(ItemReadExcelImportDrillPoint);

        JMenuItem ItemReadExcelImportDrillCoreModel = new JMenuItem("读EXCEL导入钻孔岩芯模型");
        ItemDrillAutoModeling.add(ItemReadExcelImportDrillCoreModel);

        this.add(ItemDrillAutoModeling);

        JMenu ItemFineModeling = new JMenu("精细建模");

        JMenuItem ItemFineLayerSequenceDefine = new JMenuItem("地层序列定义");
        ItemFineModeling.add(ItemFineLayerSequenceDefine);

        JMenuItem ItemGenerateTopBottomGrid = new JMenuItem("生成顶底格网");
        ItemFineModeling.add(ItemGenerateTopBottomGrid);

        JMenuItem ItemGenerateFineModel = new JMenuItem("生成精细模型");
        ItemFineModeling.add(ItemGenerateFineModel);

        this.add(ItemFineModeling);

        JMenu ItemSurfaceModelingAndSimplify = new JMenu("地表建模及简化");

        JMenuItem ItemQuadtreeStructure = new JMenuItem("四叉树构建");
        ItemSurfaceModelingAndSimplify.add(ItemQuadtreeStructure);

        JMenuItem ItemCrackEliminate = new JMenuItem("裂缝消除一树更新");
        ItemSurfaceModelingAndSimplify.add(ItemCrackEliminate);

        JMenuItem ItemMultiPointSimplify = new JMenuItem("多焦点简化");
        ItemSurfaceModelingAndSimplify.add(ItemMultiPointSimplify);

        JMenuItem ItemLayerCurveStructure = new JMenuItem("地表曲面构建");
        ItemSurfaceModelingAndSimplify.add(ItemLayerCurveStructure);

        this.add(ItemSurfaceModelingAndSimplify);

        JMenuItem ItemRiverModeling = new JMenuItem("河道建模");
        this.add(ItemRiverModeling);

        JMenu Item3AngleLayerModeling = new JMenu("三角网层面建模");

        JMenuItem ItemCreate3AngleNetStructure = new JMenuItem("创建三角网结构");
        Item3AngleLayerModeling.add(ItemCreate3AngleNetStructure);

        JMenuItem ItemReadControlNetInfo = new JMenuItem("读取控制网信息");
        Item3AngleLayerModeling.add(ItemReadControlNetInfo);
        Item3AngleLayerModeling.addSeparator();

        JMenuItem ItemCreateLayer = new JMenuItem("创建层面");
        Item3AngleLayerModeling.add(ItemCreateLayer);

        JMenuItem ItemLayerAdjust = new JMenuItem("层面校正");
        Item3AngleLayerModeling.add(ItemLayerAdjust);
        Item3AngleLayerModeling.addSeparator();

        JMenuItem ItemLayerGenerateBody = new JMenuItem("层面成体");
        Item3AngleLayerModeling.add(ItemLayerGenerateBody);

        JMenuItem ItemLayerBatchModeling = new JMenuItem("层面批量建模");
        Item3AngleLayerModeling.add(ItemLayerBatchModeling);

        this.add(Item3AngleLayerModeling);
        this.addSeparator();

        JMenuItem ItemImportPointCoordinate = new JMenuItem("导入点坐标");
        this.add(ItemImportPointCoordinate);
    }
}
